
//提取bootstrap 模板类型信息
KSFormCreator.prototype.extactTemplateOfBootStrap=function(cell_type){
    //bootstap模板
    switch(cell_type.toLowerCase()){
        case 'form' :
            return '<form class="form-horizontal">';
        case 'text' :
            return '<div class="form-group"><label class="col-sm-3 control-label">#label#</label><div class="col-sm-9"><input type="text" class="form-control"></div></div>';
        case 'submit' :
            return '<div class="form-group"><div class="col-sm-offset-3 col-sm-9"><input type="submit" class="btn btn-default" /></div></div>';
        case 'checkbox' :
            return '<div class="form-group"><div class="col-sm-offset-3 col-sm-9"><div class="checkbox"><label><input type="checkbox">#label#</label></div></div></div>';
        case 'radio' :
            return '<div class="form-group"><div class="col-sm-offset-3 col-sm-9"><div class="radio"><label><input type="radio">#label#</label></div></div></div>';
        case 'select' :
            return '<div class="form-group"><label class="col-sm-3 control-label">#label#</label><div class="col-sm-9"><select class="form-control"></select></div></div>';
        case 'option' :
            return '<option>#value#</option>';        
        case 'textarea' :
            return '<div class="form-group"><label class="col-sm-3 control-label">#label#</label><div class="col-sm-9"><textarea class="form-control" rows="3"></textarea></div></div>';
    }
    return "";
};
